package ids;

import util.SSIDException;

public enum SensorType {
	
	PortSensor,
	
	ProbeSensor;
	
	public static SensorType parse(String type) throws SSIDException {
		if (type.equalsIgnoreCase("PortSensor"))
			return SensorType.PortSensor;
		else if (type.equalsIgnoreCase("ProbeSensor"))
			return SensorType.ProbeSensor;
		else
			throw new SSIDException("Error: Invalid Sensor Type");
	}
}
